package com.ruoyi.common.entity.TransactionEntity.DTO;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.common.entity.TransactionEntity.ProductSpecValue;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

public class SpecDTO extends BaseEntity {


    private Long id;

    /** 规格名称，如：颜色、尺码、容量 */

    private String name;


    private List<ProductSpecValue> specValues;

    /** 删除标志（0-未删除，1-已删除） */
    private String delFlag;

    public SpecDTO() {
    }

    public SpecDTO(Long id, String name, List<ProductSpecValue> specValues, String delFlag) {
        this.id = id;
        this.name = name;
        this.specValues = specValues;
        this.delFlag = delFlag;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<ProductSpecValue> getSpecValues() {
        return specValues;
    }

    public void setSpecValues(List<ProductSpecValue> specValues) {
        this.specValues = specValues;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("specValues", getSpecValues())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
